package com.cykj.pojo;

import org.springframework.stereotype.Component;

@Component
public class CyAdmin {

  private long adminId;
  private String adminAccount;
  private String adminPwd;
  private String adminName;
  private String adminFace;
  private long adminRoleId;
  private long adminStatus;
  private long adminIsDelete;
  private String adminCreateTime;
  private String adminUpdateTime;
  private long adminDepartmentId;

  private CyRole role;
  private CyDepartment department;

  public CyDepartment getDepartment() {
    return department;
  }

  public void setDepartment(CyDepartment department) {
    this.department = department;
  }

  public CyRole getRole() {
    return role;
  }

  public void setRole(CyRole role) {
    this.role = role;
  }

  public CyAdmin(){

  }
  public CyAdmin(long adminId, String adminAccount) {
    this.adminId = adminId;
    this.adminAccount = adminAccount;
  }

  public long getAdminId() {
    return adminId;
  }

  public void setAdminId(long adminId) {
    this.adminId = adminId;
  }


  public String getAdminAccount() {
    return adminAccount;
  }

  public void setAdminAccount(String adminAccount) {
    this.adminAccount = adminAccount;
  }


  public String getAdminPwd() {
    return adminPwd;
  }

  public void setAdminPwd(String adminPwd) {
    this.adminPwd = adminPwd;
  }


  public String getAdminName() {
    return adminName;
  }

  public void setAdminName(String adminName) {
    this.adminName = adminName;
  }


  public String getAdminFace() {
    return adminFace;
  }

  public void setAdminFace(String adminFace) {
    this.adminFace = adminFace;
  }


  public long getAdminRoleId() {
    return adminRoleId;
  }

  public void setAdminRoleId(long adminRoleId) {
    this.adminRoleId = adminRoleId;
  }


  public long getAdminStatus() {
    return adminStatus;
  }

  public void setAdminStatus(long adminStatus) {
    this.adminStatus = adminStatus;
  }


  public long getAdminIsDelete() {
    return adminIsDelete;
  }

  public void setAdminIsDelete(long adminIsDelete) {
    this.adminIsDelete = adminIsDelete;
  }


  public String getAdminCreateTime() {
    return adminCreateTime;
  }

  public void setAdminCreateTime(String adminCreateTime) {
    this.adminCreateTime = adminCreateTime;
  }


  public String getAdminUpdateTime() {
    return adminUpdateTime;
  }

  public void setAdminUpdateTime(String adminUpdateTime) {
    this.adminUpdateTime = adminUpdateTime;
  }


  public long getAdminDepartmentId() {
    return adminDepartmentId;
  }

  public void setAdminDepartmentId(long adminDepartmentId) {
    this.adminDepartmentId = adminDepartmentId;
  }

  @Override
  public String toString() {
    return "CyAdmin{" +
            "adminId=" + adminId +
            ", adminAccount='" + adminAccount + '\'' +
            ", adminPwd='" + adminPwd + '\'' +
            ", adminName='" + adminName + '\'' +
            ", adminFace='" + adminFace + '\'' +
            ", adminRoleId=" + adminRoleId +
            ", adminStatus=" + adminStatus +
            ", adminIsDelete=" + adminIsDelete +
            ", adminCreateTime=" + adminCreateTime +
            ", adminUpdateTime=" + adminUpdateTime +
            ", adminDepartmentId=" + adminDepartmentId +
            ", role=" + role +
            '}';
  }
}
